package com.lucun.es_transaction.service;

import com.lucun.es_transaction.entity.User;
import com.lucun.es_transaction.util.JsonResult;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    @Transactional
    JsonResult<?> login(User user);

    @Transactional
    JsonResult<?> insertSelective(User record);

    @Transactional
    List<User> selectAll();

    @Transactional
    JsonResult<?> updateByPrimaryKeySelective(User user, HttpServletRequest request);

    @Transactional
    JsonResult<?> delete(HttpServletRequest request);

    @Transactional
    JsonResult<?> insertCode(User user);

    @Transactional
    JsonResult<?> selectByNmuber(HttpServletRequest request);
}
